package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 入库
 */
@Data
@TableName("enter_ware")
public class EnterWareDO {
    private Long orderNumber; // 所属订单
    @TableField("`index`")
    private Integer index; // 订单内索引
    private String barCode; // 商品码
    @TableField("`count`")
    private Integer count; // 数量
    private Date time; // 时间
    private Integer warehouseId; // 仓库
    private String inChargePerson;// 经办人

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getInChargePerson() {
        return inChargePerson;
    }

    public void setInChargePerson(String inChargePerson) {
        this.inChargePerson = inChargePerson;
    }

    @Override
    public String toString() {
        return "EnterWareDo{" +
                "orderNumber=" + orderNumber +
                ", index=" + index +
                ", barCode='" + barCode + '\'' +
                ", count=" + count +
                ", time=" + time +
                ", warehouseId=" + warehouseId +
                ", inChargePerson='" + inChargePerson + '\'' +
                '}';
    }
}
